﻿namespace Guids;

public class SequentialGuidGeneratorOptions
{
    /// <summary>
    /// 默认值: null (未指定)
    /// </summary>
    public SequentialGuidType? DefaultSequentialGuidType { get; set; }

    /// <summary>
    /// 获取 <see cref="DefaultSequentialGuidType"/> 值，为空时返回 <see cref="SequentialGuidType.SequentialAtEnd"/>
    /// </summary>
    public SequentialGuidType GetDefaultSequentialGuidType()
    {
        return DefaultSequentialGuidType ??
               SequentialGuidType.SequentialAtEnd;
    }
}
